----------------------------------------------------------------------------------
      name:  <unnamed>
       log:  G:\My Drive\Research\CTC expansion\submission\ntj\stata replication f
> iles/output\figure8.log
  log type:  text
 opened on:   3 Dec 2023, 18:09:24

. 
. use "$data/acsmergeddata.dta", clear

. 
. gen pooradults=(age>=18)*poor*(perwt+spouseperwt)

. egen totpooradults=sum(pooradults)

. 
. gen nolongerpooradults=(age>=18)*poor*(poorctc21==0)*(perwt+spouseperwt)

. egen totnolongerpooradults=sum(nolongerpooradults)

. 
. gen stillpooradults=(age>=18)*poor*(poorctc21==1)*(perwt+spouseperwt)

. egen totstillpooradults=sum(stillpooradults)

. 
. **************************************************
. * KIDS 
. **************************************************
. 
. drop stillpoor totstillpoor 

. 
. gen poorkids=poor*(newnumkidswt17)

. egen totpoorkids=sum(poorkids)

. di totpoorkids
11176950

. 
. gen stillpoor=poor*(poorctc21==1)*(newnumkidswt17)

. egen totstillpoor=sum(stillpoor)

. 
. gen pop=(newnumkidswt17)

. egen totkids=sum(pop)

. 
. di totkids
72755400

. di totpoorkids
11176950

. di totstillpoor
7727193.5

. 
. di totpoorkids/totkids
.15362365

. di (totstillpoor)/totkids
.10620783

. drop pop

. 
. 
. tab poor,m

       poor |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |    309,891       86.95       86.95
          1 |     46,499       13.05      100.00
------------+-----------------------------------
      Total |    356,390      100.00

. 
. ** VARIOUS ELASTICITIES FOR UNMARRIED MOTHERS
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*poor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)*poorctc21not
> her
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==1)*(poorctc21==
> 0)*poorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(poor*group)/(group)
 15. gen pov2=(poor*group*(poorctc21==1))/(group)
 16. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.2*group*poor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(poor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(poor==0)*poorctc21nother
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(poor==1)*(poorctc21==0)*poorct
> c21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(poor*group)/(group)
 35. gen pov2=(poor*group*(poorctc21==1))/(group)
 36. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.2*group*poor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(poor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(poor==0)*poorctc21nother
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(poor==1)*(poorctc21==0)*poorct
> c21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(poor*group)/(group)
 55. gen pov2=(poor*group*(poorctc21==1))/(group)
 56. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*avgtax*.05*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*avgtax*.05*group*poor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*avgtax*.05*group*(poor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*avgtax*.05*group*(poor==0)*poorctc21notspouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*avgtax*.05*group*(poor==1)*(poorctc21==0)*poorc
> tc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(poor*group)/(group)
 75. gen pov2=(poor*group*(poorctc21==1))/(group)
 76. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*poo
> r
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*(po
> or==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.05*(poor==0)*poorctc21nother+
> (newnumkidswt17*person2)*avgtax*.05*(poor==0)*poorctc21notspouse
 92. 
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.05*(poor==1)*(poorctc21==0)*p
> oorctc21nother+newnumkidswt17*person2*avgtax*.05*(poor==1)*(poorctc21==0)*poorct
> c21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. 
. 
. gen pov1=(poor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group4+gr
> oup5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totpoorkids
109. di totstillpoor
110. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totpoorkids/totkids
112. di totstillpoor/totkids
113. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totpoorkids-(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+tot
> group4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totpoorkids
116. 
. 
. local netkidpovrate_e`elas'=(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgr
> oup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totpoorkids-(totstillpoor+totgroup4a+totgroup4b+t
> otgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totg
> roup5e))/totpoorkids
118. 
. 
. di `netkidpovrate_e`elas'' 
119. di `kidpovchange_e`elas''
120. restore
121. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
203060.22
23977.852
179082.36
62753.042
4959.3167
72755400
11176950
7727193.5
7794905.9
.15362365
.10620783
.10713852
pov % decrease=
.30259097
7794905.9
.30259097
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
334274.37
53906.666
280367.71
108642.51
13320.957
72755400
11176950
7727193.5
7849157
.15362365
.10620783
.10788418
pov % decrease=
.29773713
7849157
.29773713
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
465488.53
83835.481
381653.05
154531.97
21682.598
72755400
11176950
7727193.5
7903408.1
.15362365
.10620783
.10862985
pov % decrease=
.29288329
7903408.1
.29288329
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
596702.69
113764.3
482938.39
200421.43
30044.241
72755400
11176950
7727193.5
7957659.2
.15362365
.10620783
.10937551
pov % decrease=
.28802946
7957659.2
.28802946
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
727916.84
143693.11
584223.74
246310.9
38405.879
72755400
11176950
7727193.5
8011910.3
.15362365
.10620783
.11012118
pov % decrease=
.28317562
8011910.3
.28317562
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
859131.03
173621.93
685509.08
292200.35
46767.52
72755400
11176950
7727193.5
8066161.4
.15362365
.10620783
.11086684
pov % decrease=
.27832178
8066161.4
.27832178
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
990345.15
203550.74
786794.43
338089.82
55129.164
72755400
11176950
7727193.5
8120412.5
.15362365
.10620783
.11161251
pov % decrease=
.27346794
8120412.5
.27346794
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1121559.3
233479.55
888079.8
383979.29
63490.805
72755400
11176950
7727193.5
8174663.6
.15362365
.10620783
.11235817
pov % decrease=
.2686141
8174663.6
.2686141
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1252773.5
263408.37
989365.11
429868.76
71852.442
72755400
11176950
7727193.5
8228914.7
.15362365
.10620783
.11310383
pov % decrease=
.26376027
8228914.7
.26376027
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1383987.7
293337.2
1090650.5
475758.23
80214.082
72755400
11176950
7727193.5
8283165.8
.15362365
.10620783
.1138495
pov % decrease=
.25890643
8283165.8
.25890643
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1515201.8
323266.01
1191935.8
521647.67
88575.723
72755400
11176950
7727193.5
8337416.9
.15362365
.10620783
.11459516
pov % decrease=
.25405259
8337416.9
.25405259
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1646416
353194.82
1293221.1
567537.14
96937.371
72755400
11176950
7727193.5
8391668
.15362365
.10620783
.11534083
pov % decrease=
.24919875
8391668
.24919875
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1777630.1
383123.63
1394506.5
613426.6
105299.01
72755400
11176950
7727193.5
8445919.1
.15362365
.10620783
.11608649
pov % decrease=
.24434491
8445919.1
.24434491
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1908844.3
413052.45
1495791.9
659316.04
113660.65
72755400
11176950
7727193.5
8500170.2
.15362365
.10620783
.11683216
pov % decrease=
.23949108
8500170.2
.23949108
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2040058.5
442981.26
1597077.2
705205.54
122022.29
72755400
11176950
7727193.5
8554421.3
.15362365
.10620783
.11757782
pov % decrease=
.23463724
8554421.3
.23463724
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2171272.6
472910.07
1698362.6
751094.98
130383.93
72755400
11176950
7727193.5
8608672.4
.15362365
.10620783
.11832348
pov % decrease=
.2297834
8608672.4
.2297834
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2302486.7
502838.88
1799647.9
796984.48
138745.57
72755400
11176950
7727193.5
8662923.5
.15362365
.10620783
.11906915
pov % decrease=
.22492956
8662923.5
.22492956
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2433701
532767.7
1900933.2
842873.92
147107.21
72755400
11176950
7727193.5
8717174.6
.15362365
.10620783
.11981481
pov % decrease=
.22007573
8717174.6
.22007573
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2564915.2
562696.54
2002218.6
888763.42
155468.85
72755400
11176950
7727193.5
8771425.8
.15362365
.10620783
.12056048
pov % decrease=
.21522188
8771425.8
.21522188
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2696129.2
592625.35
2103504
934652.85
163830.49
72755400
11176950
7727193.5
8825676.8
.15362365
.10620783
.12130614
pov % decrease=
.21036805
8825676.8
.21036805
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2827343.5
622554.16
2204789.2
980542.29
172192.13
72755400
11176950
7727193.5
8879927.9
.15362365
.10620783
.12205181
pov % decrease=
.20551421
8879927.9
.20551421

. 
. gen elasticity=.
(356,390 missing values generated)

. gen netkidpovrate1=.
(356,390 missing values generated)

. gen kidpovchange1=.
(356,390 missing values generated)

. 
. forvalues elas=0(1)20{
  2.         replace elasticity=`elas' if _n==`elas'+1
  3.         replace netkidpovrate1=`netkidpovrate_e`elas''/1000000 if _n==`elas'+
> 1
  4.         replace kidpovchange1=`kidpovchange_e`elas'' if _n==`elas'+1
  5. }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. 
. * EVERYONE ELSE GETS 0.25
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*poor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)*poorctc21not
> her
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==1)*(poorctc21==
> 0)*poorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(poor*group)/(group)
 15. gen pov2=(poor*group*(poorctc21==1))/(group)
 16. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.25*group*poor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(poor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(poor==0)*poorctc21nother
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(poor==1)*(poorctc21==0)*poorc
> tc21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(poor*group)/(group)
 35. gen pov2=(poor*group*(poorctc21==1))/(group)
 36. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.25*group*poor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(poor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(poor==0)*poorctc21nother
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(poor==1)*(poorctc21==0)*poorc
> tc21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(poor*group)/(group)
 55. gen pov2=(poor*group*(poorctc21==1))/(group)
 56. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*avgtax*.25*group*poor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(poor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(poor==0)*poorctc21notspouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(poor==1)*(poorctc21==0)*poorc
> tc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(poor*group)/(group)
 75. gen pov2=(poor*group*(poorctc21==1))/(group)
 76. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*poo
> r
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*(po
> or==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.25*(poor==0)*poorctc21nother+
> (newnumkidswt17*person2)*avgtax*.25*(poor==0)*poorctc21notspouse
 92. *gen double group4=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25
> *(poor==0)*poorctc21nother
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.25*(poor==1)*(poorctc21==0)*p
> oorctc21nother+newnumkidswt17*person2*avgtax*.25*(poor==1)*(poorctc21==0)*poorct
> c21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. 
. 
. gen pov1=(poor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group4+gr
> oup5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totpoorkids
109. di totstillpoor
110. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totpoorkids/totkids
112. di totstillpoor/totkids
113. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totpoorkids-(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+tot
> group4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totpoorkids
116. 
. 
. local netkidpovrate_e`elas'=(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgr
> oup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totpoorkids-(totstillpoor+totgroup4a+totgroup4b+t
> otgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totg
> roup5e))/totpoorkids
118. 
. 
. di `netkidpovrate_e`elas'' 
119. di `kidpovchange_e`elas''
120. restore
121. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
460738.61
55477.928
405260.69
173392.28
12287.474
72755400
11176950
7727193.5
7912873.3
.15362365
.10620783
.10875994
pov % decrease=
.29203645
7912873.3
.29203645
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
591952.77
85406.742
506546.04
219281.74
20649.114
72755400
11176950
7727193.5
7967124.4
.15362365
.10620783
.10950561
pov % decrease=
.28718261
7967124.4
.28718261
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
723166.93
115335.56
607831.38
265171.21
29010.755
72755400
11176950
7727193.5
8021375.5
.15362365
.10620783
.11025127
pov % decrease=
.28232877
8021375.5
.28232877
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
854381.08
145264.37
709116.72
311060.67
37372.398
72755400
11176950
7727193.5
8075626.6
.15362365
.10620783
.11099694
pov % decrease=
.27747493
8075626.6
.27747493
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
985595.24
175193.19
810402.07
356950.14
45734.036
72755400
11176950
7727193.5
8129877.7
.15362365
.10620783
.1117426
pov % decrease=
.27262109
8129877.7
.27262109
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1116809.4
205122.01
911687.41
402839.59
54095.677
72755400
11176950
7727193.5
8184128.8
.15362365
.10620783
.11248827
pov % decrease=
.26776726
8184128.8
.26776726
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1248023.6
235050.82
1012972.8
448729.06
62457.321
72755400
11176950
7727193.5
8238379.9
.15362365
.10620783
.11323393
pov % decrease=
.26291342
8238379.9
.26291342
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1379237.7
264979.63
1114258.1
494618.53
70818.962
72755400
11176950
7727193.5
8292631
.15362365
.10620783
.11397959
pov % decrease=
.25805958
8292631
.25805958
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1510451.9
294908.44
1215543.4
540508
79180.599
72755400
11176950
7727193.5
8346882.1
.15362365
.10620783
.11472526
pov % decrease=
.25320574
8346882.1
.25320574
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1641666.1
324837.27
1316828.8
586397.46
87542.239
72755400
11176950
7727193.5
8401133.2
.15362365
.10620783
.11547092
pov % decrease=
.2483519
8401133.2
.2483519
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1772880.2
354766.08
1418114.1
632286.9
95903.88
72755400
11176950
7727193.5
8455384.3
.15362365
.10620783
.11621659
pov % decrease=
.24349807
8455384.3
.24349807
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1904094.4
384694.9
1519399.4
678176.37
104265.53
72755400
11176950
7727193.5
8509635.4
.15362365
.10620783
.11696225
pov % decrease=
.23864423
8509635.4
.23864423
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2035308.5
414623.71
1620684.8
724065.84
112627.17
72755400
11176950
7727193.5
8563886.5
.15362365
.10620783
.11770792
pov % decrease=
.23379039
8563886.5
.23379039
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2166522.7
444552.52
1721970.2
769955.28
120988.81
72755400
11176950
7727193.5
8618137.6
.15362365
.10620783
.11845358
pov % decrease=
.22893655
8618137.6
.22893655
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2297736.9
474481.33
1823255.6
815844.78
129350.45
72755400
11176950
7727193.5
8672388.7
.15362365
.10620783
.11919924
pov % decrease=
.22408271
8672388.7
.22408271
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2428951
504410.15
1924540.9
861734.21
137712.09
72755400
11176950
7727193.5
8726639.8
.15362365
.10620783
.11994491
pov % decrease=
.21922888
8726639.8
.21922888
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2560165.1
534338.96
2025826.2
907623.71
146073.72
72755400
11176950
7727193.5
8780890.9
.15362365
.10620783
.12069057
pov % decrease=
.21437504
8780890.9
.21437504
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2691379.4
564267.77
2127111.6
953513.15
154435.36
72755400
11176950
7727193.5
8835142
.15362365
.10620783
.12143624
pov % decrease=
.2095212
8835142
.2095212
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2822593.6
594196.62
2228396.9
999402.65
162797
72755400
11176950
7727193.5
8889393.2
.15362365
.10620783
.1221819
pov % decrease=
.20466736
8889393.2
.20466736
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2953807.6
624125.43
2329682.3
1045292.1
171158.65
72755400
11176950
7727193.5
8943644.2
.15362365
.10620783
.12292757
pov % decrease=
.19981352
8943644.2
.19981352
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
3085021.9
654054.24
2430967.6
1091181.5
179520.29
72755400
11176950
7727193.5
8997895.3
.15362365
.10620783
.12367323
pov % decrease=
.19495969
8997895.3
.19495969

. 
. gen netkidpovrate2=.
(356,390 missing values generated)

. gen kidpovchange2=.
(356,390 missing values generated)

. replace elasticity=elasticity/10
(20 real changes made)

. 
. forvalues elas=0(1)20{
  2.         
.         replace netkidpovrate2=`netkidpovrate_e`elas''/1000000 if _n==`elas'+1
  3.         replace kidpovchange2=`kidpovchange_e`elas'' if _n==`elas'+1
  4. }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. **************************************************
. * DEEP POVERTY 
. **************************************************
. 
. gen deeppoorkids=deeppoor*(newnumkidswt17)

. egen totdeeppoorkids=sum(deeppoorkids)

. di totdeeppoorkids
3109854.5

. 
. gen stilldeeppoor=deeppoor*(deeppoorctc21==1)*(newnumkidswt17)

. egen totstilldeeppoor=sum(stilldeeppoor)

. 
. di totkids
72755400

. di totdeeppoorkids
3109854.5

. di totstilldeeppoor
1495238

. 
. di totdeeppoorkids/totkids
.04274397

. di (totstilldeeppoor)/totkids
.02055157

. 
. ***************************************************
. ** VARIOUS ELASTICITIES FOR UNMARRIED MOTHERS
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*deeppoor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)*deeppoor
> ctc21nother
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==1)*(deeppoo
> rctc21==0)*deeppoorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(deeppoor*group)/(group)
 15. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 16. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.2*group*deeppoor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(deeppoor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(deeppoor==0)*deeppoorctc21noth
> er
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(deeppoor==1)*(deeppoorctc21==0
> )*deeppoorctc21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(deeppoor*group)/(group)
 35. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 36. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.2*group*deeppoor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(deeppoor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(deeppoor==0)*deeppoorctc21noth
> er
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(deeppoor==1)*(deeppoorctc21==0
> )*deeppoorctc21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(deeppoor*group)/(group)
 55. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 56. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*avgtax*.05*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*avgtax*.05*group*deeppoor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*avgtax*.05*group*(deeppoor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*avgtax*.05*group*(deeppoor==0)*deeppoorctc21not
> spouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*avgtax*.05*group*(deeppoor==1)*(deeppoorctc21==
> 0)*deeppoorctc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(deeppoor*group)/(group)
 75. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 76. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*dee
> ppoor
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*(de
> eppoor==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.05*(deeppoor==0)*deeppoorctc2
> 1nother+(newnumkidswt17*person2)*avgtax*.05*(deeppoor==0)*deeppoorctc21notspouse
 92. *gen double group4=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05
> *(deeppoor==0)*deeppoorctc21nother
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.05*(deeppoor==1)*(deeppoorctc
> 21==0)*deeppoorctc21nother+newnumkidswt17*person2*avgtax*.05*(deeppoor==1)*(deep
> poorctc21==0)*deeppoorctc21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. 
. 
. gen pov1=(deeppoor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group
> 4+group5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totdeeppoorkids
109. di totstilldeeppoor
110. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totdeeppoorkids/totkids
112. di totstilldeeppoor/totkids
113. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totdeeppoorkids-(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgro
> up4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totdeep
> poorkids
116. 
. 
. local netkidpovrate_e`elas'=(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+t
> otgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totdeeppoorkids-(totstilldeeppoor+totgroup4a+totg
> roup4b+totgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgrou
> p5d+totgroup5e))/totdeeppoorkids
118. 
. 
. di `netkidpovrate_e`elas'' 
119. di `kidpovchange_e`elas''
120. restore
121. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
203060.22
2885.4586
200174.76
22406.627
395.58587
72755400
3109854.5
1495238
1518040.2
.04274397
.02055157
.02086498
pov % decrease=
.51186134
1518040.2
.51186134
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
334274.37
7182.8776
327091.5
40674.247
1251.6348
72755400
3109854.5
1495238
1537163.9
.04274397
.02055157
.02112783
pov % decrease=
.50571196
1537163.9
.50571196
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
465488.53
11480.297
454008.24
58941.866
2107.6838
72755400
3109854.5
1495238
1556287.5
.04274397
.02055157
.02139068
pov % decrease=
.49956258
1556287.5
.49956258
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
596702.69
15777.716
580924.97
77209.483
2963.7328
72755400
3109854.5
1495238
1575411.2
.04274397
.02055157
.02165353
pov % decrease=
.49341321
1575411.2
.49341321
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
727916.84
20075.134
707841.72
95477.104
3819.7817
72755400
3109854.5
1495238
1594534.9
.04274397
.02055157
.02191638
pov % decrease=
.48726383
1594534.9
.48726383
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
859131.03
24372.554
834758.44
113744.72
4675.831
72755400
3109854.5
1495238
1613658.6
.04274397
.02055157
.02217923
pov % decrease=
.48111445
1613658.6
.48111445
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
990345.15
28669.974
961675.19
132012.34
5531.8798
72755400
3109854.5
1495238
1632782.2
.04274397
.02055157
.02244208
pov % decrease=
.47496508
1632782.2
.47496508
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1121559.3
32967.392
1088591.9
150279.96
6387.9286
72755400
3109854.5
1495238
1651905.9
.04274397
.02055157
.02270492
pov % decrease=
.4688157
1651905.9
.4688157
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1252773.5
37264.81
1215508.7
168547.58
7243.9775
72755400
3109854.5
1495238
1671029.6
.04274397
.02055157
.02296777
pov % decrease=
.46266632
1671029.6
.46266632
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1383987.7
41562.232
1342425.4
186815.19
8100.0268
72755400
3109854.5
1495238
1690153.2
.04274397
.02055157
.02323062
pov % decrease=
.45651695
1690153.2
.45651695
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1515201.8
45859.65
1469342.1
205082.81
8956.0761
72755400
3109854.5
1495238
1709276.9
.04274397
.02055157
.02349347
pov % decrease=
.45036757
1709276.9
.45036757
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1646416
50157.068
1596258.9
223350.44
9812.1249
72755400
3109854.5
1495238
1728400.6
.04274397
.02055157
.02375632
pov % decrease=
.44421819
1728400.6
.44421819
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1777630.1
54454.49
1723175.6
241618.05
10668.174
72755400
3109854.5
1495238
1747524.2
.04274397
.02055157
.02401917
pov % decrease=
.43806882
1747524.2
.43806882
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1908844.3
58751.908
1850092.4
259885.67
11524.223
72755400
3109854.5
1495238
1766647.9
.04274397
.02055157
.02428202
pov % decrease=
.43191944
1766647.9
.43191944
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2040058.5
63049.326
1977009.1
278153.28
12380.271
72755400
3109854.5
1495238
1785771.6
.04274397
.02055157
.02454487
pov % decrease=
.42577006
1785771.6
.42577006
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2171272.6
67346.748
2103925.9
296420.91
13236.32
72755400
3109854.5
1495238
1804895.2
.04274397
.02055157
.02480772
pov % decrease=
.41962068
1804895.2
.41962068
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2302486.7
71644.162
2230842.6
314688.53
14092.369
72755400
3109854.5
1495238
1824018.9
.04274397
.02055157
.02507056
pov % decrease=
.4134713
1824018.9
.4134713
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2433701
75941.584
2357759.3
332956.16
14948.419
72755400
3109854.5
1495238
1843142.6
.04274397
.02055157
.02533341
pov % decrease=
.40732193
1843142.6
.40732193
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2564915.2
80239.006
2484676
351223.75
15804.468
72755400
3109854.5
1495238
1862266.2
.04274397
.02055157
.02559626
pov % decrease=
.40117256
1862266.2
.40117256
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2696129.2
84536.42
2611592.8
369491.38
16660.517
72755400
3109854.5
1495238
1881389.9
.04274397
.02055157
.02585911
pov % decrease=
.39502318
1881389.9
.39502318
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2827343.5
88833.841
2738509.5
387759
17516.566
72755400
3109854.5
1495238
1900513.6
.04274397
.02055157
.02612196
pov % decrease=
.3888738
1900513.6
.3888738

. 
. gen netkiddeeppovrate1=.
(356,390 missing values generated)

. gen kiddeeppovchange1=.
(356,390 missing values generated)

. 
. forvalues elas=0(1)20{
  2.         replace netkiddeeppovrate1=`netkidpovrate_e`elas''/1000000 if _n==`el
> as'+1
  3.         replace kiddeeppovchange1=`kidpovchange_e`elas'' if _n==`elas'+1
  4. }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. 
. * EVERYONE ELSE GETS 0.25
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*deeppoor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)*deeppoor
> ctc21nother
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==1)*(deeppoo
> rctc21==0)*deeppoorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(deeppoor*group)/(group)
 15. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 16. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.25*group*deeppoor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(deeppoor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(deeppoor==0)*deeppoorctc21not
> her
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(deeppoor==1)*(deeppoorctc21==
> 0)*deeppoorctc21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(deeppoor*group)/(group)
 35. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 36. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.25*group*deeppoor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(deeppoor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(deeppoor==0)*deeppoorctc21not
> her
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(deeppoor==1)*(deeppoorctc21==
> 0)*deeppoorctc21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(deeppoor*group)/(group)
 55. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 56. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*avgtax*.25*group*deeppoor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(deeppoor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(deeppoor==0)*deeppoorctc21not
> spouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(deeppoor==1)*(deeppoorctc21==
> 0)*deeppoorctc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(deeppoor*group)/(group)
 75. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 76. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*dee
> ppoor
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*(de
> eppoor==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.25*(deeppoor==0)*deeppoorctc2
> 1nother+(newnumkidswt17*person2)*avgtax*.25*(deeppoor==0)*deeppoorctc21notspouse
 92. *gen double group4=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25
> *(deeppoor==0)*deeppoorctc21nother
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.25*(deeppoor==1)*(deeppoorctc
> 21==0)*deeppoorctc21nother+newnumkidswt17*person2*avgtax*.25*(deeppoor==1)*(deep
> poorctc21==0)*deeppoorctc21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. 
. 
. gen pov1=(deeppoor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group
> 4+group5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totdeeppoorkids
109. di totstilldeeppoor
110. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totdeeppoorkids/totkids
112. di totstilldeeppoor/totkids
113. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totdeeppoorkids-(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgro
> up4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totdeep
> poorkids
116. 
. 
. local netkidpovrate_e`elas'=(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+t
> otgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totdeeppoorkids-(totstilldeeppoor+totgroup4a+totg
> roup4b+totgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgrou
> p5d+totgroup5e))/totdeeppoorkids
118. 
. 
. di `netkidpovrate_e`elas'' 
119. di `kidpovchange_e`elas''
120. restore
121. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
460738.61
6778.7986
453959.8
59271.174
1088.0808
72755400
3109854.5
1495238
1555597.3
.04274397
.02055157
.02138119
pov % decrease=
.49978455
1555597.3
.49978455
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
591952.77
11076.218
580876.54
77538.793
1944.1297
72755400
3109854.5
1495238
1574720.9
.04274397
.02055157
.02164404
pov % decrease=
.49363518
1574720.9
.49363518
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
723166.93
15373.637
707793.29
95806.413
2800.1787
72755400
3109854.5
1495238
1593844.6
.04274397
.02055157
.02190689
pov % decrease=
.4874858
1593844.6
.4874858
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
854381.08
19671.056
834710.02
114074.03
3656.2278
72755400
3109854.5
1495238
1612968.3
.04274397
.02055157
.02216974
pov % decrease=
.48133642
1612968.3
.48133642
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
985595.24
23968.474
961626.77
132341.65
4512.2766
72755400
3109854.5
1495238
1632091.9
.04274397
.02055157
.02243259
pov % decrease=
.47518705
1632091.9
.47518705
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1116809.4
28265.894
1088543.5
150609.27
5368.3259
72755400
3109854.5
1495238
1651215.6
.04274397
.02055157
.02269544
pov % decrease=
.46903767
1651215.6
.46903767
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1248023.6
32563.314
1215460.2
168876.89
6224.3747
72755400
3109854.5
1495238
1670339.3
.04274397
.02055157
.02295829
pov % decrease=
.46288829
1670339.3
.46288829
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1379237.7
36860.732
1342377
187144.5
7080.4236
72755400
3109854.5
1495238
1689462.9
.04274397
.02055157
.02322113
pov % decrease=
.45673892
1689462.9
.45673892
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1510451.9
41158.15
1469293.7
205412.13
7936.4724
72755400
3109854.5
1495238
1708586.6
.04274397
.02055157
.02348398
pov % decrease=
.45058954
1708586.6
.45058954
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1641666.1
45455.572
1596210.4
223679.74
8792.5217
72755400
3109854.5
1495238
1727710.3
.04274397
.02055157
.02374683
pov % decrease=
.44444016
1727710.3
.44444016
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1772880.2
49752.99
1723127.2
241947.36
9648.571
72755400
3109854.5
1495238
1746833.9
.04274397
.02055157
.02400968
pov % decrease=
.43829078
1746833.9
.43829078
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1904094.4
54050.408
1850043.9
260214.99
10504.62
72755400
3109854.5
1495238
1765957.6
.04274397
.02055157
.02427253
pov % decrease=
.43214141
1765957.6
.43214141
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2035308.5
58347.83
1976960.7
278482.6
11360.669
72755400
3109854.5
1495238
1785081.3
.04274397
.02055157
.02453538
pov % decrease=
.42599203
1785081.3
.42599203
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2166522.7
62645.248
2103877.4
296750.22
12216.718
72755400
3109854.5
1495238
1804204.9
.04274397
.02055157
.02479823
pov % decrease=
.41984265
1804204.9
.41984265
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2297736.9
66942.666
2230794.2
315017.83
13072.766
72755400
3109854.5
1495238
1823328.6
.04274397
.02055157
.02506108
pov % decrease=
.41369328
1823328.6
.41369328
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2428951
71240.088
2357710.9
333285.46
13928.815
72755400
3109854.5
1495238
1842452.3
.04274397
.02055157
.02532392
pov % decrease=
.4075439
1842452.3
.4075439
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2560165.1
75537.502
2484627.7
351553.08
14784.864
72755400
3109854.5
1495238
1861575.9
.04274397
.02055157
.02558677
pov % decrease=
.40139452
1861575.9
.40139452
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2691379.4
79834.924
2611544.3
369820.71
15640.914
72755400
3109854.5
1495238
1880699.6
.04274397
.02055157
.02584962
pov % decrease=
.39524514
1880699.6
.39524514
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2822593.6
84132.346
2738461.1
388088.3
16496.963
72755400
3109854.5
1495238
1899823.3
.04274397
.02055157
.02611247
pov % decrease=
.38909577
1899823.3
.38909577
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2953807.6
88429.76
2865377.8
406355.92
17353.011
72755400
3109854.5
1495238
1918946.9
.04274397
.02055157
.02637532
pov % decrease=
.38294639
1918946.9
.38294639
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
3085021.9
92727.181
2992294.6
424623.55
18209.061
72755400
3109854.5
1495238
1938070.6
.04274397
.02055157
.02663817
pov % decrease=
.37679701
1938070.6
.37679701

. 
. gen netkiddeeppovrate2=.
(356,390 missing values generated)

. gen kiddeeppovchange2=.
(356,390 missing values generated)

. 
. forvalues elas=0(1)20{
  2.         
.         replace netkiddeeppovrate2=`netkidpovrate_e`elas''/1000000 if _n==`elas'
> +1
  3.         replace kiddeeppovchange2=`kidpovchange_e`elas'' if _n==`elas'+1
  4. }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. foreach var in netkidpovrate1 netkidpovrate2 {
  2.         replace `var'=11.177-`var'
  3.         sum `var'
  4.         }
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkidpovr~1 |         21    2.839583    .3366193   2.297072   3.382094
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkidpovr~2 |         21    2.721616    .3366192   2.179105   3.264127

. 
. foreach var in netkiddeeppovrate1 netkiddeeppovrate2 {
  2.         replace `var'=3.11-`var'
  3.         sum `var'
  4.         }
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkiddeep~1 |         21    1.400723    .1186592   1.209486    1.59196
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkiddeep~2 |         21    1.363166    .1186593   1.171929   1.554403

.         
. keep elasticity netkid*povrate* kid*povchange*

. duplicates drop 

Duplicates in terms of all variables

(356,368 observations deleted)

. sort elasticity

. 
. *** add in static estimate
. expand 2 in l
(1 observation created)

. replace elasticity=0 if _n==23
(1 real change made)

. gen static=.
(23 missing values generated)

. replace static=3.45 if _n==23
(1 real change made)

. 
. replace elasticity =.75 if _n==22 & elasticity==.
(1 real change made)

. replace kidpovchange2=(kidpovchange2[_n-13]+kidpovchange2[_n-14])/2 if elasticit
> y==.75
(1 real change made)

. replace kiddeeppovchange2=(kiddeeppovchange2[_n-13]+kiddeeppovchange2[_n-14])/2 
> if elasticity==.75
(1 real change made)

. 
. 
. twoway line netkidpovrate1 elasticity, c(l) pstyle(p1) || line netkidpovrate2 el
> asticity, c(l) pstyle(p2) lp(.) ytitle("Millions of Children Pulled Out of Pover
> ty") graphregion(color(white)) bgcolor(white) xtitle("Elasticity for Unmarried E
> ITC Mothers" "{bf:Panel A: Child Poverty}") xlabel(0(.4)2) || line kidpovchange1
>  elasticity, c(l) pstyle(p1) yaxis(2) || line kidpovchange2 elasticity, c(l) yax
> is(2) pstyle(p2) lp(-) ytitle("Reduction in Child Poverty", axis(2)) || scatter 
> kidpovchange1 elasticity if (elasticity>.39 & elasticity<.41)  , pstyle(p1) m(S)
>  yaxis(2) || scatter kidpovchange2 elasticity if (elasticity>.74 & elasticity<.7
> 6) , pstyle(p2) m(S) yaxis(2)  || scatter static elasticity if _n==23 , pstyle(p
> 1) m(Oh) msize(large) ylabel(.365 " " .3 "30%" .2 "20%" .1 "10%"  0 "0%" , axis(
> 2)) ylabel(0(1)4.08, axis(1)) leg(order(1 "0.2 Elasticity for Other Moms, 0.05 f
> or All Dads" 2 "0.25 Elasticity for Other Moms and All Dads" 3 "Static Estimate"
>  6 "My Preferred Estimate" 7 "Estimate from Higher Elasticities in Section 7.4" 
> ) c(1) pos(6) ring(0)) 

. graph export "$output/figure8a.png", replace
file G:\My Drive\Research\CTC expansion\submission\ntj\stata replication
    files/output/figure8a.png saved as PNG format

. 
. replace static=1.62 if _n==23
(1 real change made)

. 
. twoway line netkiddeeppovrate1 elasticity, c(l) pstyle(p1) || line netkiddeeppov
> rate2 elasticity, c(l) pstyle(p2) lp(-) ytitle("Millions of Children Pulled Out 
> of Deep Poverty") graphregion(color(white)) bgcolor(white) xtitle("Elasticity fo
> r Unmarried EITC Mothers" "{bf:Panel B: Deep Child Poverty}") xlabel(0(.4)2) || 
> line kiddeeppovchange1 elasticity, c(l) pstyle(p1) yaxis(2) || line kiddeeppovch
> ange2 elasticity, c(l) yaxis(2) pstyle(p2) lp(-) ytitle("Reduction in Deep Child
>  Poverty", axis(2)) || scatter kiddeeppovchange1 elasticity if elasticity>.39 & 
> elasticity<.41 , pstyle(p1) m(S) yaxis(2) ylabel(.547 " " .5 "50%" .4 "40%" .3 "
> 30%" .2 "20%" .1 "10%"  .0 "0%" , axis(2)) ylabel(0(.4)1.7, axis(1))  || scatter
>  kiddeeppovchange2 elasticity if (elasticity>.74 & elasticity<.76) , pstyle(p2) 
> m(S) yaxis(2) || scatter static elasticity if _n==23 , pstyle(p1) m(Oh) msize(la
> rge) leg(order(1 "0.2 Elasticity for Other Moms, 0.05 for All Dads" 2 "0.25 Elas
> ticity for Other Moms and All Dads" 3 "Static Estimate" 6 "My Preferred Estimate
> " 7 "Estimate from Higher Elasticities in Section 7.4" ) c(1) pos(6) ring(0))

. graph export "$output/figure8b.png", replace
file G:\My Drive\Research\CTC expansion\submission\ntj\stata replication
    files/output/figure8b.png saved as PNG format

. 
. log close
      name:  <unnamed>
       log:  G:\My Drive\Research\CTC expansion\submission\ntj\stata replication f
> iles/output\figure8.log
  log type:  text
 closed on:   3 Dec 2023, 18:13:20
----------------------------------------------------------------------------------
